import _fetch from './request'

//定义接口请求方法
function getPhoneCode(data) {
    return _fetch({
        url: '/sendsms',
        method: 'post',
        data: data
    })
}

function toRegister(data) {
    return _fetch({
        url: '/register',
        method: 'post',
        data
    })
}

//export default {getPhoneCode}
export {
    getPhoneCode,
    toRegister
}